import { toValidScalePX } from '@/utils/index';
import { View } from '@tarojs/components';
import React from 'react';
import styles from './index.module.scss';

const ImgCover = ({ txt = '售罄', fontSize }) => {
  return (
    <View className={styles.ImgCover}>
      <View className="circle">
        <View className="cover-txt" style={{ fontSize: toValidScalePX(fontSize) }}>
          {txt}
        </View>
      </View>
    </View>
  );
};

export default ImgCover;
